#include <QApplication>
#include <QLabel>
#include <QMouseEvent>
#include <QBitmap>
#include <QPushButton>
#include "formbuilder.h"
#include <QPlainTextEdit>
#include "styledlabel.h"
#include <QTextCodec>

int main(int argc, char *argv[])
{
    Q_INIT_RESOURCE(style);

    QTextCodec::setCodecForCStrings(QTextCodec::codecForName("UTF-8"));    ///< Для строковых констант
    QTextCodec::setCodecForTr(QTextCodec::codecForName("UTF-8"));        ///< Для функций перевода tr()

    QApplication app(argc, argv);

    qApp->setStyleSheet("StyledLabel {"
                        "border-style: solid;"
                        "border-width: 1px;"
                        "border-radius: 6px;"
                        "min-width: 1em;"
                        "border-color: darkgray;"
                        "background-color: white;}"
                       "QPlainTextEdit {"
                       "background-color: white;}"
                       "QScrollBar:vertical {"
                        "width: 8px;"
                            "background: #E2E2E2;}"
                        "QScrollBar::handle:vertical {"
                             "border: 2px solid white;"
                            "border-radius: 3px;"
                             "background: #C0C0C0;}"
                        "QScrollBar:horisontal {"
                         "height: 8px;"
                             "background: #E2E2E2;}"
                         "QScrollBar::handle:horisontal {"
                              "border: 2px solid white;"
                             "border-radius: 3px;"
                              "background: #C0C0C0;}"
                        );


    FormBuilder build;
    build.sendForm()->show();
    /*build.logForm()->show();
    build.main()->show();
    build.driverForm()->show();
    build.driverForm()->move(480, 290);
    build.loginForm()->show();
    build.loginForm()->move(480, 460);
    build.messageForm()->show();
    build.messageForm()->move(480, 160);//*/
    return app.exec();
}
